package com.designPatterns.strategy;


public abstract class Pig {
	FlyBehavior flyBehavior;
	shoutBehavior shoutBehavior;
	public FlyBehavior getFlyBehavior() {
		return flyBehavior;
	}
	public void setFlyBehavior(FlyBehavior flyBehavior) {
		this.flyBehavior = flyBehavior;
	}
	public shoutBehavior getShoutBehavior() {
		return shoutBehavior;
	}
	public void setShoutBehavior(shoutBehavior shoutBehavior) {
		this.shoutBehavior = shoutBehavior;
	}
	
	public void fly(){
		flyBehavior.fly();
	}
	public void shout(){
		shoutBehavior.shout();
	}
	public abstract void display();
	
}
